package com.health.work.activity;

import com.health.work.R;
import com.health.work.other.TopViewEvent;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;


/**
*
* 项目名称：HealthNet
* 类名称：注册类型选择
* 类描述：
* 创建人：Zhai
* 创建时间：2012-11-8 下午2:26:42
* 修改人：Zhai
* 修改时间：2012-11-8 下午2:26:42
* 修改备注：
* @version
*
*/
public class RegisteSelectActivity extends Activity implements OnClickListener {

	private LinearLayout docUser;
	private LinearLayout healthUser;
	private LinearLayout productUser;
	private Button back;

	@Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
		super.onActivityResult(requestCode, resultCode, data);
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.register);
		init();
	}

	private void init() {
		docUser=(LinearLayout)this.findViewById(R.id.liner_doc_user);
		healthUser=(LinearLayout)this.findViewById(R.id.liner_health_user);
		productUser=(LinearLayout)this.findViewById(R.id.liner_prouct_user);
		back=(Button)this.findViewById(R.id.btnBack);
		docUser.setOnClickListener(this);
		healthUser.setOnClickListener(this);
		productUser.setOnClickListener(this);
		back.setOnClickListener(this);
	}
	
	
	@Override
	protected void onDestroy() {
		super.onDestroy();
	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		return super.onKeyDown(keyCode, event);
	}

	@Override
	protected void onPause() {
		super.onPause();
	}

	@Override
	protected void onRestart() {
		super.onRestart();
	}

	@Override
	protected void onResume() {
		super.onResume();
	}

	@Override
	protected void onStart() {
		super.onStart();
	}

	@Override
	protected void onStop() {
		super.onStop();
	}

	@Override
	public void onClick(View v) {
		Intent i;
		switch (v.getId()) {
		case R.id.btnBack:
			finish();
			break;
		case R.id.liner_doc_user:
			i=new Intent(this,RegisteInfoActivity.class);
			startActivity(i);
			break;
		case R.id.liner_health_user:
			i=new Intent(this,RegisteHealtherActivity.class);
			startActivity(i);
			break;
		case R.id.liner_prouct_user:
			i=new Intent(this,RegisteProductInfoInputActivity.class);
			startActivity(i);
			break;
		default:
			break;
		}
	}

}
